package it.niedermann.android.markdown.markwon.textwatcher

import android.text.Editable
import android.text.TextWatcher

abstract class InterceptorTextWatcher(protected val originalWatcher: TextWatcher) : TextWatcher {
    override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {
        originalWatcher.beforeTextChanged(s, start, count, after)
    }

    override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {
        originalWatcher.onTextChanged(s, start, before, count)
    }

    override fun afterTextChanged(s: Editable) {
        originalWatcher.afterTextChanged(s)
    }
}